package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.frontvo.CourseFrontVo;
import com.atguigu.eduservice.entity.frontvo.CourseWebVo;
import com.atguigu.eduservice.entity.ov.CoursePublishVo;
import com.atguigu.eduservice.entity.ov.CourseQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2022-08-03
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourse(CourseQuery courseQuery);

    CourseQuery getCourseInfo(String courseId);

    void updateCourseDescription(CourseQuery courseQuery);

    CoursePublishVo PublishCourseInfo(String id);

    Map getCoursePage(int current, int limit, EduCourse eduCourse);

    void deleteCourseId(String courseId);

    Map<String, Object> getCourseFrontList(Page<EduCourse> eduCoursePage, CourseFrontVo courseFrontVo);

    CourseWebVo getFrontCourseInfo(String courseId);
}
